package com.qishenyuan.competition.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qishenyuan.competition.dto.CreateTopicReq;
import com.qishenyuan.competition.dto.TeamupReq;
import com.qishenyuan.competition.model.Teamup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qishenyuan.competition.vo.TeamUpBriefResp;
import com.qishenyuan.competition.vo.TeamUpDetailResp;

import java.util.List;

/**
 * @author qishenyuan
 * @since 2025-03-02
 */
public interface TeamupService extends IService<Teamup> {

    /**
     * 发帖
     */
    void createTopic(String token, CreateTopicReq createTopicReq);

    /**
     * 分页获取组队列表
     */
    IPage<TeamUpBriefResp> getTeamupList(String token, TeamupReq teamupReq);

    /**
     * 获取组队详情
     */
    TeamUpDetailResp getTeamUpDetail(Integer id);

    /**
     * 搜索组队
     */
    List<TeamUpBriefResp> searchTeamUp(String key);
}
